import {ParamsType} from "@ant-design/pro-components";
import {addData, deleteById, listData, pageData, updateById} from "@/services/base-request";

export const pageQuestionTypeAPI = (params: ParamsType) => {
  return pageData("/questionType", params)
}

export const listQuestionTypeAPI = (params: DynamicObject) => {
  return listData("/questionType", params)
}

export const addQuestionTypeAPI = (data: API.IQuestionType) => {
  return addData("/questionType", data)
}

export const updateQuestionTypeAPI = (data: API.IQuestionType) => {
  return updateById("/questionType", data)
}

export const deleteQuestionTypeAPI = (id: string | number) => {
  return deleteById("/questionType", id)
}
